package javabase.schoolwork.day5_29;

import java.util.Date;

/**
 * @author fance
 * @date 2018/5/29 22:08
 */
public class UniversityCard extends ViolationCard {

    public UniversityCard(String name, String banji, Date date, String reason) {
        this.setName(name);
        this.setBanji(banji);
        this.setDate(date);
        this.setReason(reason);
    }

    @Override
    public void getInfo() {
        System.out.println(getName() + " " + getBanji() + " " + getDate() + " " + getReason());
    }

    public static void main(String[] args) {
        UniversityCard universityCard = new UniversityCard("shuxuwei","1",new Date(),"睡过头。。。");
        universityCard.realModelMethod();
    }
}
